// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router'
import RestaurantList from '../components/RestaurantList.vue'
import Menu from '../components/Menu.vue'
import OrderManagement from '../components/OrderManagement.vue'
import UserManagement from '../components/UserManagement.vue'
import Login from '../components/Login.vue'
import Register from '../components/Register.vue'

const routes = [
  { path: '/', component: Dashboard },
  { path: '/login', component: Login },
  { path: '/register', component: Register },
  { path: '/restaurants', component: RestaurantList },
  { path: '/menu', component: Menu },
  { path: '/orders', component: OrderManagement },
  { path: '/users', component: UserManagement },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router